<?php
/* @var $this yii\web\View */
use common\utils\Com;
$this->registerJsFile("/js/imgLazy.v1.js?t=".Com::v());
$this->registerJsFile("/js/layer/layer.js?t=".Com::v());
$js = <<<JS
    //图片懒加载
    var imgLoad = lazyload.init({
        anim:true,
        selectorName:"img"
    });
JS;

$this->registerJs($js,\yii\web\View::POS_END);
$this->title = $help['title'];
$keyword = $help['key_word'];
$description = empty($help['info']) ? mb_substr(strip_tags($help['content']),0,90) : $help['info'];

?>
<?php $this->beginBlock('keyword'); ?>
<meta name="Keywords" content="<?=$keyword?>" />
<meta name="Description" content="<?=$description?>" />
<?php $this->endBlock(); ?>
<?=$this->render("@app/views/layouts/header",['title'=>$this->title])?>
<div class="help">
    <div class="w-1200">
        <div class="right">
            <div class="content">
                <div class="txt">
                    <?=Com::contentImg($help['content'])?>
                </div>
            </div>
            <div class="next">
                <?php if(!empty($pre)): ?>
                <div class="pre">
                    上一篇：<a href="<?=Com::urlHelp($pre['id'])?>"><?=$pre['title']?></a>
                </div>
                <?php endif;?>
                <?php if(!empty($next)): ?>
                <div class="next">
                    下一篇：<a href="<?=Com::urlHelp($next['id'])?>"><?=$next['title']?></a>
                </div>
                <?php endif;?>
            </div>
        </div>
    </div>

</div>
